package com.yanqu.road.server.manager.config;

import com.yanqu.road.server.CrossBaseServer;
import com.yanqu.road.server.manger.CheckConfigVersionMgr;
import com.yanqu.road.server.manger.CheckConfigVersionTask;
import com.yanqu.road.utils.ConfigHelper;

public class CrossCheckConfigVersionMgr extends CheckConfigVersionMgr {
    @Override
    public boolean reloadData() throws Exception {
        int channelId = ConfigHelper.getInt("channelId");
        addTask(new CheckConfigVersionTask(channelId, CrossBaseServer.getInstance().getServerId(), CrossBaseServer.getInstance().getServerType(), CrossBaseServer.getInstance().getMgrList()));
        return true;
    }
}
